home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gChapPrec, gTraduit, gMessDef1, gMessDef2, gMessSty2, gListSuj, gEtudAct, gEtudPrec, gEtatEtud, gPartie, gPosVideo, g1erSprChr, gMaxBoutons, g1erSprLoc, gBoutons, g1erSprNav, gBarChron, gScopePh, gSujAct, gListCodPhy, gListFicPhy, gDur, gListTimPhy, gFirst, gSujet0, gListHorPhy, gListDebPhy, gListFinPhy, gListRecPhy
- curseur(6)
- BigPurge()
- if (gChapPrec = "PH") and (gEtudPrec = "FI") then
- repeat with i = g1erSprChr to gMaxBoutons
- puppetSprite(i, 1)
- end repeat
- gScopePh(visible, 1)
- spriteBox(g1erSprLoc + 3, getAt(getAt(gListRecPhy, gSujAct), 1), getAt(getAt(gListRecPhy, gSujAct), 2), getAt(getAt(gListRecPhy, gSujAct), 3), getAt(getAt(gListRecPhy, gSujAct), 4))
- gBarChron(fleche, 1, getAt(gListTimPhy, gSujAct), 0)
- go(label("PH:RN"))
- else
- if gSujet0 <> 0 then
- set premier to 0
- set moncod to gSujet0(Le_Code)
- set gSujAct to getPos(gListCodPhy, moncod)
- set monIndex to getPos(gListCod, moncod)
- set maPos to getAt(gListHorPhy, monIndex)
- set maPos to maPos * 4
- put ">>" && maPos
- gScopePh(SetTime, maPos)
- else
- set premier to 1
- set maPos to getAt(gListDebPhy, 27)
- set maPos to maPos * 4
- gScopePh(SetTime, maPos)
- set gSujAct to 1
- set gSujet0 to getAt(gListSuj, gSujAct)
- set gDur to getAt(gListFinPhy, 27)
- set gDur to gDur * 4
- sound fadeOut 1, 30
- end if
- repeat with i = g1erSprChr to gMaxBoutons
- puppetSprite(i, 1)
- end repeat
- set the visible of sprite g1erSprLoc to 1
- set nSuj to getAt(gListSujPhy, gSujAct)
- set moncod to getAt(gListCodPhy, gSujAct)
- if nSuj <> 0 then
- set the visible of sprite (g1erSprNav + 3) to 1
- if nSuj <= 18 then
- set the visible of sprite (g1erSprNav + 1) to 1
- if gSujet0(Le_Statut) = "A" then
- set the visible of sprite (g1erSprNav + 2) to 1
- end if
- end if
- end if
- set the visible of sprite (g1erSprNav + 4) to 1
- set gMessDef1 to getAt(gTraduit, 64)
- set gMessDef2 to " "
- set gMessSty2 to " "
- gScopePh(Box, 20, 92, 280, 256)
- gScopePh(visible, 1)
- set the visible of sprite 2 to 1
- spriteBox(g1erSprLoc + 3, getAt(getAt(gListRecPhy, gSujAct), 1), getAt(getAt(gListRecPhy, gSujAct), 2), getAt(getAt(gListRecPhy, gSujAct), 3), getAt(getAt(gListRecPhy, gSujAct), 4))
- set the visible of sprite (g1erSprLoc + 3) to 1
- gBarChron(fleche, 1, getAt(gListTimPhy, gSujAct), 0)
- if premier = 1 then
- else
- go(label("PH:RN"))
- curseur(-1)
- end if
- end if
- end
-